﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VectorHelper;
using System.Drawing;

namespace _2D碰撞
{
    public class Ball
    {
        float _x;
        float _y;
        float _r;
        Vector _velocity;

        /// <summary>
        /// 坐标X
        /// </summary>
        public float X
        {
            get { return _x; }
            set { _x = value; }
        }

        /// <summary>
        /// 坐标X
        /// </summary>
        public float Y
        {
            get { return _y; }
            set { _y = value; }
        }

        /// <summary>
        /// 半径
        /// </summary>
        public float R
        {
            get { return _r; }
            set { _r = value; }
        }

        /// <summary>
        /// 速度
        /// </summary>
        public Vector velocity
        {
            get { return _velocity; }
            set { _velocity = value; }
        }

        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="r"></param>
        /// <param name="velocity"></param>
        public Ball(float x, float y, float r, Vector velocity)
        {
            this._x = x;
            this._y = y;
            this._r = r;
            this._velocity = velocity;
        }




    }
}
